package string;
/*
String
 */
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String ling="ahj123asd456xwy789";
        //将数字部分替换为XW
        ling=ling.replaceAll("[0-9]+","XW");
        System.out.println(ling);

    }
}
